package com.hzit.payweb.api.enums;

/**
 * 支付状态枚举
 */
public enum  PayStatusEnum {

    UNPAY(2,"未支付"),
    PAY_FAIL(-1,"支付失败"),
    PAY_SUCCESS(0,"支付成功"),
    PAYING(1,"支付中");


    private int code;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    private String desc;


    PayStatusEnum(int code,String desc){
        this.code = code;
        this.desc = desc;
    }

    //根据code获取desc

    //根据描述获取code

}
